import request from '@/utils/request'

// 定时关闭查询
export function getStart(query) {
    return request({
        url: '/equipment/scrape/getStart/' + query,
        method: 'get',
    })
}

// 查询自动刮粪机启动
export function listMsg(query) {
    return request({
        url: '/equipment/scrape/findMsg',
        method: 'get',
        params: query
    })
}

// 查询自动刮粪机列表
export function list(query) {
    return request({
        url: '/equipment/scrape/select',
        method: 'get',
        params: query
    })
}

//根据id查询自动刮粪机
export function selectbyid(id) {
    return request({
        url: '/equipment/scrape/selectbyid/' + id,
        method: 'get',

    })
}

//新增自动刮粪机
export function add(data) {
    return request({
        url: '/equipment/scrape/add',
        method: 'post',
        data: data
    })
}

//修改自动刮粪机
export function edit(data) {
    return request({
        url: '/equipment/scrape/edit',
        method: 'post',
        data: data
    })
}

//删除自动刮粪机
export function del(ids) {
    return request({
        url: '/equipment/scrape/delete/' + ids,
        method: 'delete'
    })
}

// 表单校验scrapeCode是否存在
export function findscrapeCode(scrapeCode) {
    return request({
        url: '/equipment/scrape/findscrapeCode/' + scrapeCode,
        method: 'get'
    })
}